<!--组件信息-->
<template>
  <div class="full-tab">
    <el-table
      :data="fullTableData"
      highlight-current-row
      border
      height="100%"
      :row-style="{height:'40px'}"
      :cell-style="{padding:'0px'}"
      :header-cell-style="{background: '#FAFAFA', padding: 0, height: '40px', color: '#666666'}"
      style="width: 100%">
      <el-table-column
        type="selection"
        width="50">
      </el-table-column>
      <slot v-for="(item,index) in fullColumns">
        <el-table-column
          :key="index"
          :property="item.field"
          :label="item.title"
          :width="item.width"
          show-overflow-tooltip
          sortable>
        </el-table-column>
      </slot>
      <el-table-column
        label="操作"
        width="200">
        <template>
          <a>预览</a>
          <a-divider type="vertical" />
          <a>下载</a>
          <a-divider type="vertical" />
          <a>删除</a>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: '',
  components: {
  },
  data () {
    return {
      fullTableData: [ // 全文表格数据
        {
          AI_Index: 1,
          AI_Name: '脊背.xls',
          AI_Size: 19456,
          AI_UploadDateTime: '2020-06-01',
          AI_FileDateTime: '2020-06-01',
          AI_IsOCR: ''
        },
        {
          AI_Index: 2,
          AI_Name: '案卷分类批量导出.xls',
          AI_Size: 6651819,
          AI_UploadDateTime: '2020-06-02',
          AI_FileDateTime: '2020-06-02',
          AI_IsOCR: ''
        },
        {
          AI_Index: 3,
          AI_Name: '卷内目录.xls',
          AI_Size: 13824,
          AI_UploadDateTime: '2020-06-03',
          AI_FileDateTime: '2020-06-03',
          AI_IsOCR: ''
        },
        {
          AI_Index: 4,
          AI_Name: '315066.jpg',
          AI_Size: 188803,
          AI_UploadDateTime: '2020-06-04',
          AI_FileDateTime: '2020-06-04',
          AI_IsOCR: ''
        }
      ],
      fullColumns: [ // 全文表格表头数据
        {
          title: '顺序号',
          field: 'AI_Index'
        },
        {
          title: '文件名',
          field: 'AI_Name'
        },
        {
          title: '文件大小',
          field: 'AI_Size'
        },
        {
          title: '上传时间',
          field: 'AI_UploadDateTime'
        },
        {
          title: '创建时间',
          field: 'AI_FileDateTime'
        },
        {
          title: 'OCR状态',
          field: 'AI_IsOCR'
        }
      ]
    }
  },
  created () {},
  mounted () {},
  methods: {}
}
</script>

<style lang="less" scoped>
.full-tab {
  height: 100%;
}
</style>
